package com.shuihu.springcloud.controller;

import com.shuihu.springcloud.service.AdminService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author shuihu
 * @create 2020-05-31 18:07
 */
@RestController
public class WebController {

    @Resource
    private AdminService adminService;


    @GetMapping("/login")
    public String login(){

        return adminService.login();
    }
}
